<%@ page language="java" pageEncoding="UTF-8"%>

<script type="text/javascript">
require.config({		    
    'baseUrl': './asset'
});
require(['admin-user'], function(user) {
    user.init();
});
require(['admin-user-query'], function(userquery) {
	userquery.init();
});
</script>

<div class="control-group">
	<table>
		<tr>
			<td width="20%">
				<font>会员编号</font>
				<input type="text" id="user_userid" class="inputsize"/>
			</td>
			<td width="20%">
				<font>会员卡号</font>
				<input type="text" id="user_cardid" class="inputsize"/>
			</td>
			<td width="15%">
				<font>手机号</font>
				<input type="text" id="user_cellphone" class="inputsize"/>
			</td>
			<td width="25%">
				<font>取餐地点</font>
				<select id="user_zone_id" class="input-medium search-query">
					<option value="-1">全部</option>
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<font>注册日期</font>
				<input type="text" id="user_registertimeF" onClick="WdatePicker({isShowClear:true,readOnly:false})" class="inputsize"/>
				<input type="text" id="user_registertimeT" onClick="WdatePicker({isShowClear:true,readOnly:false})" class="inputsize"/>
			</td>
			<td colspan="2">
				<font>最后购买日期</font>
				<input type="text" id="user_lastbuytimeF" onClick="WdatePicker({isShowClear:true,readOnly:false})" class="inputsize"/>
				<input type="text" id="user_lastbuytimeT" onClick="WdatePicker({isShowClear:true,readOnly:false})" class="inputsize"/>
			</td>
		</tr>
		<tr>
			<td width="30%">
				<font>累计消费金额</font>
				<input type="text" id="user_consumestart" class="halfinputsize"/>-
				<input type="text" id="user_consumeend" class="halfinputsize"/>
			</td>
			<td width="30%">
				<font>余额</font>
				<input type="text" id="user_balancestart" class="halfinputsize"/>-
				<input type="text" id="user_balanceend" class="halfinputsize"/>
			</td>
			<td>
				<font>会员状态</font>
				<select id="user_state" class="input-medium search-query">
					<option value="-1">全部</option>
					<option value="0">自动生成</option>
					<option value="1">锁定</option>
					<option value="2">用戶注册</option>
				</select>
			</td>
			<td width="10%">
				<button id="user_query" type="button" class="btn btn-primary" data-toggle="button">查询</button>
			</td>
		</tr>
		<table border="1">
		<span id="user_search"></span>
			<thead>
				<th>会员编号</th>
				<th>会员卡号</th>
				<th>会员昵称</th>
				<th>手机号</th>
				<th>取餐地点</th>
				<th>注册日期</th>
				<th>最后购买日期</th>
				<th>累计消费金额</th>
				<th>余额</th>
				<th>会员状态</th>
			</thead>
			<tbody id="user_list">
			</tbody>
		</table>
	</table>
</div>
